package com.dxyxx.pojo;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class GroupOrder {

	/** 付款时间 */

	private Date dealTime;

	/**
	 * 自提还是快递
	 */
	private String deliveryType;

	/** 下单时的备注 */

	private String description;

	/** 折扣 */

	private Double discount;

	/** 主键 */
	private Long id;
	/** 是否自提 */
	private Boolean isBuffet;
	/** 是否已经取消 */
	private Boolean isCancel;

	/** 是否付款 */
	private Boolean isPay;

	/**
	 * 总价
	 */
	private double money;

	private String operator;

	private OrderProp orderProp;

	/**
	 * 微信支付，支付宝支付
	 */
	private String payType;

	/** 下单时间 */
	private Date postTime;

	/**
	 * 对应的交易id号码
	 */
	private String trade_no;

	/** 下单的用户 */
	private User user;

	private String uuid;

	public Date getDealTime() {
		return dealTime;
	}

	public String getDeliveryType() {
		return deliveryType;
	}

	public String getDescription() {
		return description;
	}

	public Double getDiscount() {
		return discount;
	}

	public Long getId() {
		return id;
	}

	public Boolean getIsBuffet() {
		return isBuffet;
	}

	public Boolean getIsCancel() {
		return isCancel;
	}

	public Boolean getIsPay() {
		return isPay;
	}

	public double getMoney() {
		return money;
	}

	public String getOperator() {
		return operator;
	}

	public OrderProp getOrderProp() {
		return orderProp;
	}

	public String getPayType() {
		return payType;
	}

	public Date getPostTime() {
		return postTime;
	}

	public String getTrade_no() {
		return trade_no;
	}

	public User getUser() {
		return user;
	}

	public String getUuid() {
		return uuid;
	}

	public void setDealTime(Date dealTime) {
		this.dealTime = dealTime;
	}

	public void setDeliveryType(String deliveryType) {
		this.deliveryType = deliveryType;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setIsBuffet(Boolean isBuffet) {
		this.isBuffet = isBuffet;
	}

	public void setIsCancel(Boolean isCancel) {
		this.isCancel = isCancel;
	}

	public void setIsPay(Boolean isPay) {
		this.isPay = isPay;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public void setOrderProp(OrderProp orderProp) {
		this.orderProp = orderProp;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	/** 对应的 团类型 */
	private Group group;

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	/**
	 * 对应的团实例
	 */

	private GroupInstance groupInstance;

	//	@JsonIgnore 会导致反系列 失败
	public GroupInstance getGroupInstance() {
		return groupInstance;
	}

	public void setGroupInstance(GroupInstance groupInstance) {
		this.groupInstance = groupInstance;
	}

}
